<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\ReportModel */

?>
<div class="report-model-view">
    <p>
        <?php
        echo Html::a('返回', ['report/index'], ['class' => 'btn btn-success']);
        ?>
    </p>
    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'house.house_name',
            ['attribute' => 'return_time','value' => function($model){
                return date('Y-m-d',$model->return_time);
            }] ,
            ['attribute' => 'sign_time','value' => function($model){
                return date('Y-m-d',$model->sign_time);
            }] ,
            ['attribute' => 'sign_amount','value' => function($model){
                return $model->sign_amount.'万元';
            }] ,
            'sign_house',
            ['attribute' => 'return_amount','value' => function($model){
                return $model->return_amount.'万元';
            }]
        ],
    ]) ?>

</div>
